
import java.util.LinkedList;
import java.util.Queue;

public class Text {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();
        myQueue.offer(1);
        myQueue.offer(2);
        int val = myQueue.poll();
        System.out.println(val);
        int val2 = myQueue.peek();
        System.out.println(val2);
    }
    public static void main1(String[] args) {
        Queue<Integer> stack = new LinkedList<>();
        stack.offer(1);
        stack.offer(2);
        int val = stack.poll();
        System.out.println(val);
        int val2 = stack.peek();
        System.out.println(val2);

    }

}
